﻿using _2112A_2_MES._XiangHe;
using _2112A_2_MES.XiangHes.Unities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _2112A_2_MES.XiangHes.Measuress
{
    public interface IMeasureService:IApplicationService
    {
        /// <summary>
        /// 获取计量单位列表
        /// </summary>
        /// <param name="meaCode"></param>
        /// <param name="meaName"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<ReturnInfo<List<Measures>>> GetMeasureList(string? meaCode,string? meaName, int pageIndex, int pageSize);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="measure"></param>
        /// <returns></returns>
        Task<int> AddMeasure(Measures measure);

        /// <summary>
        /// 获取单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Measures> GetSingleMea(int id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="measure"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> UpdateMeasure(Measures measure,int id);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteMeasure(int id);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteRangeMeasure(string id);
    }
}
